<div class="member box">
<h3>modify customer info</h3>
<a href="{url('manage', 'Customer')}">back2list</a>
<br>
Manage-Edit-Customer.php
{$this->data['noticestr']}
<br>

<form action="{url('manage', 'DoEditCustomer')}" method="post" id='customeredit' onsubmit="return doEditCustomerSubmit();">
	cid: {$this->data['cid']}<br>
	<input name="postdata[cid]" type="hidden" value="{$this->data['queryre']['cid']}"/>
	cname:<input name="postdata[cname]" type="text" size="80" maxlength="100" value="{$this->data['queryre']['cname']}"/><br>
	clevel:
<!--{loop ConstValues::$customerLevels $lvid $lvstr}-->
<?
	$ischecked='';
	
	if(intval($lvid) == intval($this->data['queryre']['clevel']))
	{
		$ischecked='checked';
	}
?>
			<input name="postdata[clevel]" value='{$lvid}' type='radio' '{$ischecked}'>{$lvstr}
<!--{/loop}-->
	<br>
	status:<input name="postdata[status]" type="text" size="80" maxlength="10" value="{$this->data['queryre']['status']}"/><br>
	<input type='submit' value="edit">
</form>
<br>
<h3>recent visit logs</h3>
<table class="list boards">
	<thead>
		<tr>
			<th>index</th>
			<th>cid</th>
			<th>linkid</th>
			<th>vtime</th>
		</tr>
	</thead>
	<tbody>

<!--{loop $this->data['vlog'] $data}-->
		<tr class='old'>
			<td>{$data['vid']}</td>
			<td>{$data['cid']}</td>
			<td>{$data['linkid']}</td>
			<td>{$data['itime']}</td>
		</tr>

<!--{/loop}-->
	</tbody>
</table>
</div>

<script type="text/javascript">
function doEditCustomerSubmit()
{
	return confirm("确定修改?");
}
</script>
